package edu.nf.vrs.announcement.inf;

import edu.nf.vrs.announcement.dto.AnnouncementDTO;
import edu.nf.vrs.announcement.dto.AnnouncementPageDTO;

/**
 * @author Lv
 * @date 2022/4/6
 */
public interface AnnouncementService {

    /**
     * 查询所有公告
     * @param pageNum
     * @param pageSize
     * @return
     */
    AnnouncementPageDTO listAnnouncement(Integer pageNum,Integer pageSize);
    /**
     * 新增公告
     * @param announcementDTO
     */
    void addAnnouncement(AnnouncementDTO announcementDTO);
    /**
     * 更新公告
     * @param announcementDTO
     */
    void updateAnnouncement(AnnouncementDTO announcementDTO);

    /**
     * 根据ID查询公告
     * @param id
     * @return
     */
    AnnouncementDTO getAnnouncementById(Integer id);

}
